home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tools
/
packer
/
zoo
/
makefile.ami
< prev
next >
Wrap
Makefile
|
1995-03-09
|
5KB
|
142 lines
# derived from: @(#) makefile 2.2 88/01/27 19:37:59
# $Id: makefile,v 1.22 91/07/09 04:10:38 dhesi Exp $
# Make Zoo
#
#The contents of this makefile are hereby released to the public domain.
# -- Rahul Dhesi 1991/07/05
#
# This makefile expects two macro names, `CFLAGS' and `EXTRA', to hold
# all the switches to be supplied to the C compiler. It also expects
# a macro `LDFLAGS' to hold the switch for the loader when invoked.
# The macro "MODEL" holds switches needed for both compile and link,
# such as "memory model" for Intel and Z8000 processors. OPTIM is the
# optimize option and may be set on the make command line to -O2 or
# whatever your compiler thinks is nice.
#
# vvvvvvvvv # Manx
#CC = cc
#LN = ln -w
#LIBS = -lc
# ^^^^^^^^^ # Manx
# vvvvvvvvv # DICE
CC = dcc -c -proto -ms
LN = dcc
LIBS = -2.0
MODEL = -mRR -r
# ^^^^^^^^^ # DICE
CFLAGS = -DMCH_AMIGA
EXTRA = -DMED_MEM -DNDEBUG -DLINT
LINTFLAGS = -DLINT
OPTIM =
#List of all object files created for Zoo
ZOOOBJS = addbfcrc.o addfname.o basename.o comment.o crcdefs.o \
getfile.o lzc.o lzd.o machine.o makelist.o misc.o misc2.o \
nextfile.o needed.o options.o parse.o portable.o prterror.o \
version.o zoo.o zooadd.o zooadd2.o zoodel.o zooext.o zoofilt.o \
zoolist.o zoopack.o io.o lzh.o maketbl.o maketree.o huf.o \
encode.o decode.o
FIZOBJS = fiz.o addbfcrc.o portable.o crcdefs.o
.c.o :
$(CC) $(CFLAGS) $(MODEL) $(EXTRA) $*.c -o $*.o
# executable targets
TARGETS = zoo fiz
targets: $(TARGETS)
#######################################################################
# AMIGA
#######################################################################
#######################################################################
# CLEANUP TARGETS
#######################################################################
# standard clean -- remove all transient files
clean :
delete $(ZOOOBJS) $(FIZOBJS)
# object clean only -- just remove object files
objclean:
delete *.o
#######################################################################
# BINARY TARGETS
#######################################################################
zoo: $(ZOOOBJS)
$(LN) -o zoo $(MODEL) $(LDFLAGS) $(ZOOOBJS) $(LIBS)
fiz: $(FIZOBJS)
$(LN) -o fiz $(MODEL) $(LDFLAGS) $(FIZOBJS) $(LIBS)
#######################################################################
# DEPENDENCIES
#######################################################################
# DO NOT DELETE THIS LINE -- it marks the beginning of this dependency list
addbfcrc.o: options.h
addfname.o: options.h various.h zoo.h zoofns.h zooio.h
addfname.o: zoomem.h
basename.o: assert.h debug.h options.h parse.h various.h
basename.o: zoo.h zoofns.h zooio.h
comment.o: errors.i options.h portable.h various.h
comment.o: zoo.h zoofns.h zooio.h
crcdefs.o: options.h
decode.o: ar.h lzh.h options.h zoo.h
encode.o: ar.h errors.i lzh.h
encode.o: options.h zoo.h
fiz.o: options.h portable.h various.h zoo.h zoofns.h
fiz.o: zooio.h
getfile.o: options.h various.h zoo.h zoofns.h zooio.h
getfile.o: zoomem.h
huf.o: ar.h errors.i lzh.h options.h zoo.h
io.o: ar.h errors.i lzh.h options.h portable.h zoo.h
io.o: zooio.h
lzc.o: assert.h debug.h lzconst.h options.h various.h
lzc.o: zoo.h zoofns.h zooio.h zoomem.h
lzd.o: assert.h debug.h lzconst.h options.h various.h
lzd.o: zoo.h zoofns.h zooio.h zoomem.h
lzh.o: ar.h errors.i options.h zoo.h
machine.o: options.h various.h zoo.h zoofns.h zooio.h amiga.c
makelist.o: assert.h debug.h errors.i options.h
makelist.o: portable.h various.h zoo.h zoofns.h zooio.h
maketbl.o: ar.h lzh.h options.h zoo.h
maketree.o: ar.h lzh.h options.h zoo.h
misc.o: errors.i options.h portable.h various.h zoo.h zoofns.h zooio.h
misc2.o: errors.i options.h portable.h various.h zoo.h
misc2.o: zoofns.h zooio.h zoomem.h
msdos.o: errors.i options.h zoo.h zoofns.h zooio.h
needed.o: debug.h options.h portable.h various.h zoo.h
needed.o: zoofns.h zooio.h
nextfile.o: options.h various.h zoo.h
options.o: errors.i options.h various.h zoo.h zoofns.h
options.o: zooio.h
parse.o: assert.h options.h parse.h various.h zoo.h
parse.o: zoofns.h zooio.h
portable.o: assert.h debug.h machine.h options.h
portable.o: portable.h various.h zoo.h zoofns.h zooio.h
prterror.o: options.h various.h
prterror.o: zoofns.h zooio.h
zoo.o: errors.i options.h various.h zoo.h zoofns.h
zoo.o: zooio.h zoomem.h
zooadd.o: zooadd.c debug.h errors.i options.h parse.h portable.h
# $(CC) -L100 $(CFLAGS) $(MODEL) $(EXTRA) zooadd.c -o zooadd.o
zooadd.o: various.h zoo.h zoofns.h zooio.h zoomem.h
zooadd2.o: assert.h debug.h errors.i options.h parse.h
zooadd2.o: various.h zoo.h zoofns.h zooio.h
zoodel.o: errors.i options.h portable.h various.h zoo.h zoofns.h zooio.h
zooext.o: errors.i machine.h options.h parse.h portable.h various.h zoo.h
zooext.o: zoofns.h zooio.h
zoofilt.o: options.h
zoolist.o: zoolist.c errors.i options.h portable.h various.h zoo.h
# $(CC) -L100 $(CFLAGS) $(MODEL) $(EXTRA) zoolist.c -o zoolist.o
zoolist.o: zoofns.h zooio.h zoomem.h
zoopack.o: errors.i options.h portable.h various.h
zoopack.o: zoo.h zoofns.h zooio.h